package com.viroyal.monitorlib.entity;

import android.content.Context;
import com.google.gson.Gson;
import com.viroyal.monitorlib.network.Api;

public class RestartRes {
    public String id;
    public String action;
    public String dev_sn;
    public String pkg_name;
    public int status;
    public int version_code;

    public RestartRes(Context context,
                      String id, String action, int status, String pkg_name) {
        dev_sn = Api.get().getDeviceId(context);
        this.id = id;
        this.action = action;
        this.status = status;
        this.pkg_name = pkg_name;
    }

    @Override
    public String toString() {
        return new Gson().toJson(this);
    }
}
